package org.future.client;

import java.net.Socket;

import org.future.server.ConfigUtil;

public class Client{
    public static void main(String[] args)throws Exception{
        final int length = 10;
        String host = "localhost";
        int port = ConfigUtil.getInt("srv_port");
        
        Socket[] sockets = new Socket[length];
        for(int i=0;i<length;i++){
            sockets[i] = new Socket(host,port);
            System.out.println(i + "--- client connected! ---");
            // 
            Thread client_thread = new Thread(new ClientHandler(sockets[i]));
            client_thread.start();
        }
    }
}